package indi.luckly.config.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义token
 */
public class SecureToken extends UsernamePasswordToken {
    private final String token;

    public SecureToken(String token) {
        this.token = token;
    }


    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
